package com.fgba.express.data.service;

import com.fgba.express.core.service.ICrudService;
import com.fgba.express.data.dto.MenuDto;
import com.fgba.express.data.entity.Menu;
import com.fgba.express.data.search.MenuSearch;
import org.springframework.security.access.ConfigAttribute;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单 服务类
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
public interface IMenuService extends ICrudService<Menu, MenuDto, MenuSearch> {
    @Override
    boolean removeById(Serializable id);

    @Override
    boolean removeByIds(Collection<? extends Serializable> idList);

    List<MenuDto> getMenuByRoleId(Long roleId);

    List<MenuDto> getNavMenus(Long userId);

    List<String> getConfigAttributes();
}
